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 » Scripters
Home Search
 

Re: Script help

Previous Thread :: Next Thread 
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
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
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 06:34 PM
bump


Report Abuse
TimeTicks is not online. 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
SuperWarfare09 is online. SuperWarfare09
Joined: 25 Jan 2015
Total Posts: 1
11 Feb 2016 07:13 PM
Hey i need help scripting if you could help me it would mean alot..
Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 07:16 PM
Would you be able to edit the script to how it should be??


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 08:06 PM
b2


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 09:04 PM
b3


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 09:41 PM
b4


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 09:56 PM
b5


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
12 Feb 2016 12:22 AM
b6


Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
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
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
12 Feb 2016 12:42 AM
this breaks the script all together


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
12 Feb 2016 01:29 AM
bump


Report Abuse
twister1976 is not online. twister1976
Joined: 17 Sep 2010
Total Posts: 2250
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
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
12 Feb 2016 02:05 AM
thanks


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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