zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 17 Oct 2010 02:50 PM |
Anyway, theres no output. It just plain doesn't work. Help? Yes, RFPart is inside the hopperbin.
p = script.Parent.RFPart p.Parent = nil
on = false
script.Parent.Selected:connect(function(mouse) if mouse.Target and on == false then p.Parent = workspace p.CFrame = CFrame.new(mouse.Hit.p.x, mouse.Target.Position.y + mouse.Target.Size.y/2, mouse.Hit.p.z) end mouse.Move:connect(function() if mouse.Target on == false then p.Parent = workspace p.CFrame = CFrame.new(mouse.Hit.p.x, mouse.Target.Position.y + mouse.Target.Size.y/2, mouse.Hit.p.z) elseif not mouse.Target or on == true then p.Parent = nil end end) mouse.Button1Down:connect(function() if p.Parent == workspace and game.Players.LocalPlayer.leaderstats.Mana.Value >= 25 then pos = p.Position cframe = p.CFrame p.Parent = nil on = true game.Players.LocalPlayer.leaderstats.Mana.Value = game.Players.LocalPlayer.leaderstats.Mana.Value - 25 for i=1, 10 do x = Instance.new("Part", workspace) x.BrickColor = BrickColor.new("Bright red") x.CanCollide = false Instance.new("Fire", x) x.Position = pos + Vector3.new(0,50,0) x.formFactor = "Plate" x.Size = Vector3.new(10,10,10) x.Touched:connect(function(hit) pcall(function() hit.Parent.Humanoid:TakeDamage(25) end) end) wait(math.random(1, 4)) game:service("Debris"):AddItem(x, 15) end on = false end end) end)
|
|
|
| Report Abuse |
|
|
| 17 Oct 2010 03:03 PM |
if mouse.Target on == false then
There should be an 'or' or an 'and' between 'mouse.Target' and 'on == false'. |
|
|
| Report Abuse |
|
|
| 17 Oct 2010 03:05 PM |
Huh, late post...
I hate these double-threads... |
|
|
| Report Abuse |
|