2DWorlds Forums
Game scripts request - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Your Stuff (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=6)
+--- Forum: Requests (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=33)
+--- Thread: Game scripts request (/showthread.php?tid=7781)



Game scripts request - Vast - 08-06-2011

i need a tool that if u use it and left click on a brick the fixed option gets unchecked, so it obeys gravity, and if u right click it ,it gets fixed again.
the goal is to get a ball from the top into a specific slot, and once the ball hits that slot, you get teleported to another area, with another level of the game.
srsly?no one?


RE: Game scripts request - Qwertygiy - 08-06-2011

We only have about 20 active users -- this isn't ROBLOX where you can get a reply in 5 minutes.

Anyway,

[lua]
local tool = script.Parent
link(tool.MouseDown, function(b, pos)
local p = game.World:getPartAt(pos)
if p ~= nil then
if b == 1 then
p.Fixed = false
elseif b == 2 then
p.Fixed = true
end end end)
[/lua]

Try that.


RE: Game scripts request - Ashely - 08-06-2011

Moved to request.


RE: Game scripts request - Vast - 08-07-2011

thanks, and how about the part about the ball hitting the slot sending you to another level?