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: Script not working in online

Previous Thread :: Next Thread 
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:23 AM
I am honestly getting so mad right now. im trying everything, in this script it works in solo mode, but when i start up a server it does not work at all. some one please help me i dont understand D:
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:23 AM
woops x3 heres the script ::




bin = script.Parent
me = script.Parent.Parent.Parent

enabled = true

function onButton1Down(mouse)
if me.InUse.Value == false and me.Magic.Value >=10 then


if not enabled then
return
end

local player = game.Players.LocalPlayer
if player == nil then return end


me.Magic.Value = me.Magic.Value - 10
me.InUse.Value = true
enabled = false
game:GetService("Chat"):Chat(me.Character.Head, "Test")
x = Instance.new("Part")
x.BrickColor = BrickColor.new("Really red")
x.Size = Vector3.new(40,55,5)
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.Shape = "Block"
x.Name = "MagicBrick"
x.CanCollide = false
x.Transparency = 0.5
x.Anchored = false
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.velocity = me.Character.Torso.CFrame.lookVector*60
x.Parent = Workspace
y.Parent = x

x.CFrame = me.Character.Torso.CFrame*CFrame.new(0, -3, -15)
wait(5)
x:remove()
me.InUse.Value = false

game.Debris:AddItem(x, 200)


wait(10)

enabled = true
end


end
enabled = true
function onS(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onS)
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
21 Apr 2014 02:24 AM
where is the parents Parented to
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:26 AM
the me is parented to the player and the bin is the tool
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:30 AM
everything is parented correctly, i dont know whats going on.
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:38 AM
bump
Report Abuse
SolarHorizon is online. SolarHorizon
Joined: 22 Jun 2010
Total Posts: 633
21 Apr 2014 02:43 AM
try using WaitForChild
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:54 AM
how would i do that?
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
21 Apr 2014 02:56 AM
http://wiki.roblox.com/index.php?title=WaitForChild
It's like FindFirstChild, except it yields the script until the child is found.

Here's my siggy... Done.
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 02:59 AM
Tryed it and still not working. i just went to one of my old places that works all the time. and now i went there and it does not work no more :O?????
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
21 Apr 2014 03:03 AM
all the script i ever made are broken and i dont know why D:, please help.
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