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
|
  |
| 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
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 21 Apr 2014 02:24 AM |
| where is the parents Parented to |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 794 |
|
| |
|
| |
|
djboy
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 794 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|