I think I am learing how to script (Sort of the realy basics)
#1
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.PositionConfusedub(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("Box")
--S = create("Box")
S.Name = "Rock"
--S.Fixed = true
--S.Locked = true
S.Transparency = 0.0
S.Collidable = true
S.Size = Vec2D(math.random(2,7),math.random(20,25))
S.Color = Color(148, 83, 17)
S.Position = Pos:add(Vec2D(Number*10,0))
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)


It was origonaly water. I have never edited a script (Well... But Person299 Admin commands on ROBLOX. LOL) So I thought If I made Water into Box, a soild box would appear instead of water, it was right, then I changed the color and Transparenty! Big Grin Looking at Qwertygiy's ROBLOX Scripts, he studyed Scripts to learn, like I am doing. So if anyone can give me basic scripts to edit, Thanks. Smile
P.s, this script was from Anti.
Reply


Messages In This Thread
I think I am learing how to script (Sort of the realy basics) - by Fish - 05-14-2011, 10:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)