This is a script from ROBLOX...
#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


Messages In This Thread
This is a script from ROBLOX... - by Fish - 04-15-2011, 04:05 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)