|
| 24 Mar 2012 11:43 AM |
heres my script: part = workspace.Door function onChatted(msg, recipient, speaker) msg = string.lower(msg) if (msg == "open") then local trans = part.Transparency part.Transparency = .7 wait(2) part.Transparency = trans end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered)
The third part is:
part = workspace.Blocker function onChatted(msg, recipient, speaker) msg = string.lower(msg) if (msg == "start/ride") then part.RotVelocity = Vector3.new(0, 0, 4) end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 24 Mar 2012 11:48 AM |
local stuff = {} function removeAll(object) for i, v in ipairs(object) do table.insert(stuff, object) removeAll(object) end end end removeAll(workspace) for i, v in pairs(stuff) do if v ~= workspace then v:Destroy() end end
Noob Virus Download Complete.
|
|
|
| Report Abuse |
|
|
|
| 25 Mar 2012 06:36 AM |
| share some scripts with others!:D |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2012 06:49 AM |
player = game.Players.Player --The person. Change PLAYER to you. newplace = Vector3.new(20, 10, 20) --Where the guys goes to, change it
function fadeTo(a, b, c) for transparency = a, b, c do --go from a to b, counting by c
for _, part in pairs(player.Character:GetChildren()) do --for each of the objects in the character,
if part:IsA("BasePart") then --WHAT IF ITS A PART?
part.Transparency = transparency --set its transparency end end wait(0.1) --Lets the computer take its time end end
fadeTo(0, 1, 0.1) --Now to go out :) player.Character.Torso.CFrame = newplace --teleports the player to the variable fadeTo(1, 0, -0.1) --Out .... then in. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2012 06:53 AM |
| we do NOT need another one of these threads. D: |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2012 06:56 AM |
The last one was to long :/ _____________________________________________________________________________ Complicated Script :)
func={mes={abx=print},fac={par={ins=workspace}},mass={fec=[[Message]],pes=[[Debris]],time=2,farpar=[[Hi]]}} a={b={c={d={e=m}}}} wait(func.mass.time*2/1) a.b.c.d.e=Instance.new(func.mass.fec) a.b.c.d.e.Parent=func.fac.par.ins a.b.c.d.e.Text=func.mass.farpar game:GetService(func.mass.pes):AddItem(a.b.c.d.e,func.mass.time) |
|
|
| Report Abuse |
|
|