eleyeJoin Date: 2010-10-31 Post Count: 599 |
This script works perfectly but you can spawn it in as many times as you can, how could I stop this?
for some reason it said my post was inappropriate
pastebin(DOT)com/PDzpReX9
replace (DOT) with "."
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
bump
|
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
learn how to use string manipulation so you don't have to have 10000 if statments for a single word "segway". If you look in rbx models and the vote to kick script is a classic example. Also, you need to check if the player has already spawned a segway, inwhich case you could use a table |
|
|
Hey i need help scripting if you could help me it would mean alot..
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
Would you be able to edit the script to how it should be??
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
b2
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
b3
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
b4
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
b5
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
b6
|
|
|
Debounce.
http://wiki.roblox.com/index.php?title=Debounce
local bool = false
local waitingtime = 5
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg, plrchat)
local torso = player.Character.Torso
local segway = serverstorage:FindFirstChild("HandlessSegway")
if GamePassService:PlayerHasPass(player, id) and bool == false then
bool = true
if msg == "spawn s" or msg == "spawn se" or msg == "spawn seg" or msg == "spawn segw" or msg == "spawn segwa" or msg == "spawn segway" then
local Clon = segway:Clone()
Clon.Parent = player.Character
Clon:SetPrimaryPartCFrame(torso.CFrame)
Instance.new("StringValue",player.Character.HandlessSegway).Name = player.Name
local okname = player.Name
local newval = player.Character.HandlessSegway
local segwayval = player.Character.HandlessSegway:FindFirstChild(player.Name)
segwayval.Value = segwayval.Name
wait(waitingtime)
bool = false
end
end
end)
end)
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
this breaks the script all together
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
bump
|
|
|
local GamePassService = game:GetService("GamePassService")
local id = 338076906
local serverstorage = game:GetService('ServerStorage')
game.Players.PlayerAdded:connect(function(player)
local hasSeg = false
player.Chatted:connect(function(msg, plrchat)
local torso = player.Character.Torso
local segway = serverstorage:FindFirstChild("HandlessSegway")
if GamePassService:PlayerHasPass(player, id) and hasSeg == false then
if msg == "spawn s" or msg == "spawn se" or msg == "spawn seg" or msg == "spawn segw" or msg == "spawn segwa" or msg == "spawn segway" then
hasSeg = true
local Clon = segway:Clone()
Clon.Parent = player.Character
Clon:SetPrimaryPartCFrame(torso.CFrame)
Instance.new("StringValue",player.Character.HandlessSegway).Name = player.Name
local okname = player.Name
local newval = player.Character.HandlessSegway
local segwayval = player.Character.HandlessSegway:FindFirstChild(player.Name)
segwayval.Value = segwayval.Name
end
end
end)
end)
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
thanks
|
|
eleyeJoin Date: 2010-10-31 Post Count: 599 |
would you know how to color it? there is a colorvalue inside of the segway that changed the color when that is changed, but I need it so that randoms cannot color your segway.
|
|