|
| 29 Nov 2008 08:33 PM |
| Ask for something you need, and I will try to help. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:37 PM |
I want a script so like:
(username that left) lefted.:( |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:37 PM |
I want a script so like:
(username that left) left.:( |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:37 PM |
| Opps! Double post. And I spelt it wrong. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:39 PM |
function onPlayerLeave(Player) local m = Instance.new("Message") m.Parent = workspace m.Text = "("..Player.Name..") has left." wait(5) m:remove() end game.Players.ChildRemoved:connect(onPlayerLeave) |
|
|
| Report Abuse |
|
|
Meelo
|
  |
| Joined: 04 Jul 2008 |
| Total Posts: 14763 |
|
|
| 29 Nov 2008 08:40 PM |
game.Players.ChildRemoved:connect(function(Inst) local M = Instance.new("Message") M.Text = Inst.Name .. " left!" wait(5) M:Remove() end)
MWAHAHA! I stole Robertoman's customer |
|
|
| Report Abuse |
|
|
Meelo
|
  |
| Joined: 04 Jul 2008 |
| Total Posts: 14763 |
|
|
| 29 Nov 2008 08:41 PM |
| Awww... I was too slow! But I used less lines that you! |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:44 PM |
| 2 lines less... Lol, w/e. I learned a little from yours. It is amazing how you can look at something you have seen many times and learn something new from it. :-) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:50 PM |
I got 3 more requests
1. I need a script so when you kill a zombie you get 10 cash 2. When you say "open" the brick's transparcy will turn 0.7 for 2 seconds 3. When you say "start ride" the brick's RotVelocity will turn to 4 |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 09:09 PM |
The first requires you to edit your weapons.
The second is this:
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 |
|
|
| |
|
|
| 29 Nov 2008 10:24 PM |
| Robertoman, you are wrong. You insert a script into the zombie looking for a creator tag when it dies. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:26 PM |
| Then show me, because as far as I know, your weapon needs to leave do the work. Or at least, that would be the easiest way I can think of. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:29 PM |
h = script.Parent.Zombie function died() c = h:FindFirstChild("creator") if c ~= nil then c.Value.leaderstats.Cash.Value = c.Value.leaderstats.Cash.Value + 10 end end
h.Died:connect(died) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:31 PM |
| creator is a child of Humanoid? |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:32 PM |
| When you shoot or shank something with a humanoid, the tool usually copies something called "creator" into the humanoid to see who killed. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Nov 2008 10:35 PM |
| When brick battle weapons were created. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:39 PM |
| I need a scrip that i can put in a weapon script. that will kill anny player i click on 20 seconds after i click them. thanks. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:40 PM |
Why doesn't this work?
wait(0.2) local ball = script.Parent.Ball local turnOn = script.Parent.turnOn
ball.Parent = nil
function turnSPMakerOn() turnOn.Parent = nil print("function's rollin'") -- Just a tracer line I added, it didn't get executed before the script broke local enabled = true while enabled do wait(6) print("works so far") --Another tracer local b = ball:clone() b.Name = "Ball" b.Color = Color3.new(math.random(), math.random(), math.random()) b.Parent = script.Parent end end
turnOn.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:40 PM |
| Dude I just posted that on your thread. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:42 PM |
| I want a brick. At first it's blue then after 20 seconds it changes to red. It's probaly very simple.(for you) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:44 PM |
wait(0.2) local ball = script.Parent.Ball local turnOn = script.Parent.turnOn ball.Parent = nil function turnSPMakerOn() turnOn.Parent = nil print("function's rollin") local enabled = true while enabled do wait(6) print("works so far") local b = ball:clone() b.Name = "Ball" b.BrickColor = BrickColor.new(math.random()) b.Parent = script.Parent end end turnOn.ClickDetector.MouseClick:connect(turnSPMakerOn) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:45 PM |
brick = script.Parent brick.BrickColor = "Blue" wait(20) brick.BrickColor = "Red" |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 10:48 PM |
| Thanks for sparing time for me. Your awesome! |
|
|
| Report Abuse |
|
|