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 works in studio but not on actual game

Previous Thread :: Next Thread 
rocky82599 is not online. rocky82599
Joined: 19 May 2009
Total Posts: 5819
18 Jul 2017 07:07 PM
I made a local script for a game I'm making where if you reach a certain amount of coins, you'll get an aura and change forms basically
It works in studio, but when I play it on the actual site, it doesn't work. It's a local script and I put it in starterplayerscripts, I honestly don't know why it's not working
Report Abuse
penguinology is not online. penguinology
Joined: 15 Aug 2010
Total Posts: 25711
18 Jul 2017 07:09 PM
It might help to add a debug of some sort and post the script

I'm not sure I can help you but someone else definitely can
Report Abuse
rocky82599 is not online. rocky82599
Joined: 19 May 2009
Total Posts: 5819
18 Jul 2017 07:24 PM
how do i get debug
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:25 PM
post script, post any errors in studio output or client log in game (which can be accessed by pressing ## (or ######## ###### become who were meant to be" - Madeon
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:26 PM
alt plus ## or just ## "We'll become who were meant to be" - Madeon
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:26 PM
## = ####### ###### become who were meant to be" - Madeon
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:26 PM
## ################### filter "We'll become who were meant to be" - Madeon
Report Abuse
rocky82599 is not online. rocky82599
Joined: 19 May 2009
Total Posts: 5819
18 Jul 2017 08:46 PM
enabled = true
hi = script.Parent.Parent
supersaniked = false
function stealrings()
while true do
if script.Parent.Parent.leaderstats.Rings.Value == 0 then return else
wait(1)
script.Parent.Parent.leaderstats.Rings.Value = script.Parent.Parent.leaderstats.Rings.Value - 1
end
end
end
while true do
wait()
if script.Parent.Parent.leaderstats.Rings.Value >= 50 and enabled == true and supersaniked == false then
enabled = false
supersaniked = true
local rat = game.ServerStorage.supersaniks:clone()
hi.Character.Pants:remove()
hi.Character.Shirt:remove()
rat.Parent = hi.Character
hi.Character.HumanoidRootPart.Trail:remove()
hi.Character.Head.BrickColor = BrickColor.new('New Yeller')
local trail = game.ServerStorage.supersaniktrail:clone()
if hi.Character:FindFirstChild("UpperTorso") then
trail.Attachment0 = hi.Character.Head.FaceFrontAttachment
trail.Attachment1 = hi.Character.Torso.RootRigAttachment
else
trail.Attachment0 = hi.Character.Head.FaceFrontAttachment
trail.Attachment1 = hi.Character.Torso.WaistBackAttachment
end
trail.Parent = hi.Character.HumanoidRootPart
e = game.ServerStorage.Aura:clone()
e.Parent = script.Parent.Parent.Character.Torso
local e = game.ServerStorage.Fly:clone()
e.Parent = script.Parent.Parent.Backpack
stealrings()
elseif script.Parent.Parent.leaderstats.Rings.Value == 0 and supersaniked == true then
script.Parent.Parent.Character.Torso.Aura:remove()
script.Parent.Parent.Backpack.Fly:remove()
hi.Character.supersaniks:remove()
hi.Character.HumanoidRootPart.supersaniktrail:remove()
local trail = game.ServerStorage.Trail:clone()
if hi.Character:FindFirstChild("UpperTorso") then
trail.Attachment0 = hi.Character.Head.FaceFrontAttachment
trail.Attachment1 = hi.Character.Torso.RootRigAttachment
else
trail.Attachment0 = hi.Character.Head.FaceFrontAttachment
trail.Attachment1 = hi.Character.Torso.WaistBackAttachment
end
trail.Parent = hi.Character.HumanoidRootPart
local shirt = game.ServerStorage.Shirt:clone()
local pants = game.ServerStorage.Pants:clone()
shirt.Parent = hi.Character
pants.Parent = hi.Character
hi.Character.Head.BrickColor = BrickColor.new('Really blue')
local fly1 = hi.Character.Torso:FindFirstChild('BodyGyro')
local fly2 = hi.Character.Torso:FindFirstChild('BodyVelocity')
local fly3 = hi.Character.Torso:FindFirstChild('BodyPosition')
if fly1~=nil then
fly1:remove()
fly2:remove()
fly3:remove()
end
supersaniked = false
enabled = true
end
end




not getting any errors, it just wont run on actual roblox
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