|
| 11 Feb 2016 09:36 AM |
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 "."
|
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Feb 2016 06:37 PM |
| 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 |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 07:13 PM |
Hey i need help scripting if you could help me it would mean alot..
|
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 07:16 PM |
Would you be able to edit the script to how it should be??
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 12 Feb 2016 12:38 AM |
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)
|
|
|
| Report Abuse |
|
|
|
| 12 Feb 2016 12:42 AM |
this breaks the script all together
|
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Feb 2016 01:59 AM |
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
|
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Feb 2016 02:09 AM |
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.
|
|
|
| Report Abuse |
|
|