This is a script from ROBLOX...
#1
I have no idea how to script. Ok.. My friend on ROBLOX gave me this it is suppost to be a water tool that brings water bricks from the ground..


tool = Instance.new("Tool")
Handle = Instance.new("Part")

Handle.Shape = "Ball"
Handle.formFactor = 0
Handle.TopSurface = 0
Handle.BottomSurface = 0
Handle.Locked = true
Handle.Transparency = 0
Handle.Reflectance = 0
Handle.Name = "Handle"
Handle.BrickColor = BrickColor.new("Cyan")
Handle.Transparency = 0.3
Handle.Size = Vector3.new(1,1,1)
Handle.Parent = tool


RockFolder = Instance.new("Model")
RockFolder.Name = "Rocks"
RockFolder.Parent = Workspace


function Sound(SoundId)
s = Instance.new("Sound")
s.SoundId = SoundId
s.Name = "ToolSound"
s.Parent = Handle
s.Pitch = 1
s.Volume = 1
return s
end

Engage = Sound("http://www.roblox.com/asset/?id=11450310")

RockFolder.ChildAdded:connect(function(Stone)
Stone.Touched:connect(function (hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= tool.Parent.Name then
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-100
hit.Parent.Humanoid.Sit = true
hit.Parent.Torso.Velocity = Vector3.new(math.random(-0,00),math.random(125,150),math.random(-00,00))
end
end)
Stone.CFrame = Stone.CFrame*CFrame.new(0,0,0)
for i=1,25 do
Stone.CFrame = Stone.CFrame*CFrame.new(0,0.4,0)
wait()
end
wait(0.05)
for i=1,25 do
Stone.CFrame = Stone.CFrame*CFrame.new(0,-0.4,0)
wait()
end
Stone:remove()
end)



function Stone(CFRAME,Number)
S = Instance.new("Part")
S.Name = "Rock"
S.formFactor = 0
S.Anchored = true
S.TopSurface = "Smooth"
S.BottomSurface = "Smooth"
S.Locked = true
S.Transparency = 0.3
S.Reflectance = 0
S.CanCollide = true
S.Size = Vector3.new(math.random(02,07),math.random(20,25),math.random(02,07))
S.BrickColor = BrickColor.new("Cyan")
S.CFrame = CFRAME*CFrame.new(0,0,Number*10)*CFrame.fromEulerAnglesXYZ(2*math.pi/360*math.random(-20,20),2*math.pi/360*math.random(-500,500),2*math.pi/360*math.random(-20,20))
S.Parent = RockFolder

end


D = false

tool.Activated:connect(function()
if D == true then return end
Engage:play()
D = true
Dir = tool.Parent.Torso.CFrame
print(Dir)
for i=1,10 do
Stone(Dir,i*-1)
wait(0.05)
end
D = false
end)

Player = game.Players.Fish
tool.Parent = Player.Backpack
RockFolder.Parent = Player.Character
tool.Name = "_-_=+.?[}"
--[[p = Instance.new("Part")
p.Parent = Workspace
p.Anchored = true
p.BottomSurface = "Smooth"
p.Position = Vector3.new(10, 50, 20)
p2 = p:clone()
p2.Parent = Workspace
p2.Position = Vector3.new(20, 15, 2)
a = Instance.new("Part")
a.Parent = Workspace
a.Anchored = true
a.TopSurface = "Smooth"
a.BottomSurface = "Smooth"
a.BrickColor = BrickColor.new("Really red")
a.Size = Vector3.new(1,((p.Position - p2.Position).magnitude),1)
a.CFrame = CFrame.new((p1.Position+ p2.Position)/2, p1.Position)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)



]]




Is they any way this can get in a giver? Thank You! Smile
Oh sorry! Make this into a buildism script! You don't need sound! Big Grin Sorry! xD
Reply
#2
http://buildism.net/games/Testing-area---/1030
Made simple translation of it Tongue
Tell me if you want modifications, or the script as its now ^_^
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#3
Wow TY! Can you give me the script so I can make the tool? =3
Reply
#4
Feel free to request any changes you cant do yourself!
Always happy to help Wink
Code:
RockFolder = create("Model")
RockFolder.Name = "Rocks"
RockFolder.Parent = game.World

link(RockFolder.ChildAdded,function(Stone)
link(Stone.Collided,function (hit)
if hit.Parent:isA("Character") and hit.Parent.Name ~= script.Parent.Parent.Parent.Name then
hit.Parent.Health = hit.Parent.Health-100
hit.Velocity = Vec2D(0,math.random(125,150))
end
end)
for i=1,25 do
Stone.Position = Stone.Position:add(Vec2D(0,0.4))
sleep(0.01)
end
sleep(0.05)
for i=1,25 do
Stone.Position = Stone.Position:sub(Vec2D(0,0.4))
sleep(0.01)
end
local s = create("Script")
s.Source = "sleep(3) script.Parent:remove()"
s.Parent = Stone
end)

function Stone(Pos,Number)
S = create("Water")
--S = create("Box")
S.Name = "Rock"
--S.Fixed = true
--S.Locked = true
S.Transparency = 0.3
S.Collidable = true
S.Size = Vec2D(math.random(2,7),math.random(20,25))
S.Color = Color(4, 175, 236)
S.Position = Pos:add(Vec2D(Number*10,0)) -- No idea how to do angle stuff :P
S.Parent = RockFolder
end

D = false

link(script.Parent.MouseDown,function()
if D == true then return end
D = true
local BP = Vec2D(script.Parent.Parent.Parent.Character.Body.Position.x,script.Parent.Parent.Parent.Character.Body.Position.y)
for i=1,10 do
Stone(BP,i*-1)
sleep(0.05)
end
D = false
end)
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#5
Can you make it a free model if possible? =3 If you have ROBLOX I will donate 30 Bux. Big Grin
Reply
#6
Why?
Make a tool, put it on the startertools place (Dun remember what it is), and put a script with the script in it


And it works D:
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)