generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Robertoman's Help Thread

Previous Thread :: Next Thread 
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
29 Nov 2008 08:33 PM
Ask for something you need, and I will try to help.
Report Abuse
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
29 Nov 2008 08:37 PM
I want a script so like:

(username that left) lefted.:(
Report Abuse
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
29 Nov 2008 08:37 PM
I want a script so like:

(username that left) left.:(
Report Abuse
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
29 Nov 2008 08:37 PM
Opps! Double post. And I spelt it wrong.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
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 is not online. 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 is not online. 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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
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
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
29 Nov 2008 09:50 PM
Is that all anyone wants?
Report Abuse
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
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
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
29 Nov 2008 10:31 PM
creator is a child of Humanoid?
Report Abuse
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
29 Nov 2008 10:34 PM
When was that a feat?
Report Abuse
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
29 Nov 2008 10:35 PM
When brick battle weapons were created.
Report Abuse
unbelivable is not online. unbelivable
Joined: 02 Nov 2008
Total Posts: 13
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
xShurikenx is not online. xShurikenx
Joined: 11 Oct 2008
Total Posts: 377
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
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
29 Nov 2008 10:40 PM
Dude I just posted that on your thread.
Report Abuse
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
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
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
29 Nov 2008 10:45 PM
brick = script.Parent
brick.BrickColor = "Blue"
wait(20)
brick.BrickColor = "Red"
Report Abuse
skateboarderdude is not online. skateboarderdude
Joined: 16 Jul 2008
Total Posts: 10861
29 Nov 2008 10:48 PM
Thanks for sparing time for me. Your awesome!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image