C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
I recently fixed a few crucial bugs to this. But now, the mouse is kinda buggy. What I mean is, for example. Play The Quarry. And compare it my mining game. See the difference with the outlines? And you have to be in FP to mine blocks under you. What can fix this? Help?
local mouse = game.Players.LocalPlayer:GetMouse()
local t = 0
script.Parent.Activated:connect(function()
if mouse.Target == nil then return end
if mouse.Target:FindFirstChild("HP") ~=nil then
local mag = (game.Players.LocalPlayer.Character.Head.Position - mouse.Target.Position).magnitude
if mag < 13 then
if t == 0 then
t = 1
script.Parent.Hit:Play()
local a = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Swing)
a:Play()
mouse.Target:FindFirstChild("HP").Value = mouse.Target:FindFirstChild("HP").Value - 1
if mouse.Target:FindFirstChild("HP").Value == 0 then
local resource = game.Players.LocalPlayer:FindFirstChild(mouse.Target:FindFirstChild("Resource").Value)
resource.Value = resource.Value + 1
mouse.Target:Destroy()
end
wait(1.3)
t = 0
end
end
end
end)
mouse.Move:connect(function()
if mouse.Target == nil then return end
if mouse.Target.Name ~= "Mineral" then
if mouse.Target.Parent == game.Workspace.Mine then
game.Players.LocalPlayer.PlayerGui.Outlines.Adornee = mouse.Target
else
game.Players.LocalPlayer.PlayerGui.Outlines.Adornee = nil
end
end
end) |
|
UncleTazJoin Date: 2009-08-19 Post Count: 12795 |
Wow, you have no creativity don't you... |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
SHUT UP.
#Bump |
|
FatalizerJoin Date: 2011-08-28 Post Count: 1520 |
What is the purpose of the script ? |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
It's a pickaxe. |
|
FatalizerJoin Date: 2011-08-28 Post Count: 1520 |
Aha. |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
#Bump |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
#Bump |
|
FatalizerJoin Date: 2011-08-28 Post Count: 1520 |
#Bump |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
# Your Annoying And I Helped You() |
|
UncleTazJoin Date: 2009-08-19 Post Count: 12795 |
Literally every game on your profile is the exact replica of something -_-'
|
|
|
local mouse = game.Players.LocalPlayer:GetMouse()
local t = 0
script.Parent.Activated:connect(function()
if mouse.Target == nil then return end;Spawn(wait)
if mouse.Target:FindFirstChild("HP") ~=nil then
local mag = (game.Players.LocalPlayer.Character.Head.Position - mouse.Target.Position).magnitude
if mag < 13 then
if t == 0 then
t = 1
script.Parent.Hit:Play()
local a = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Swing)
a:Play()
mouse.Target:FindFirstChild("HP").Value = mouse.Target:FindFirstChild("HP").Value - 1
if mouse.Target:FindFirstChild("HP").Value == 0 then
local resource = game.Players.LocalPlayer:FindFirstChild(mouse.Target:FindFirstChild("Resource").Value)
resource.Value = resource.Value + 1
mouse.Target:Destroy()
end
wait(1.3)
t = 0
end
end
end
end)
mouse.Move:connect(function()
if mouse.Target == nil then return end
if mouse.Target.Name ~= "Mineral" then
if mouse.Target.Parent == game.Workspace.Mine then
game.Players.LocalPlayer.PlayerGui.Outlines.Adornee = mouse.Target
else
game.Players.LocalPlayer.PlayerGui.Outlines.Adornee = nil
end
end
end) |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
Thanks Angles. I shall try this and see if it improves at all. ^_^ |
|
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
Now it crashes in studio .-. |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
I fixed what you did and it did nothing at all. I am kinda thinking your trolling me... |
|