crazyEjai
(Giyu)
September 19, 2021, 4:53pm
#1
What do you want to achieve? A working shuriken
2.What is the issue? My tool works but when used it teleports me into the ground.
What solutions have you tried so far? Tweaking the code and dev forum
I have made a shuriken using the code below it works but teleports me why? Please help ASAP
local Debris = game:GetService(“Debris”)
local debounce = true
script.Parent.Activated:Connect(function()
if debounce then
debounce = false
local StartingShurikinAmmo = game.ServerStorage.StartingShurikinAmmo:Clone()
StartingShurikinAmmo.Owner.Value = script.Parent.Parent.Name
StartingShurikinAmmo.Damage.Value = script.Parent.Damage.Value
StartingShurikinAmmo.CFrame = CFrame.new(script.Parent.Handle.Position)
StartingShurikinAmmo.BodyVelocity.Velocity = script.Parent.Parent.HumanoidRootPart.CFrame.LookVector * script.Parent.Speed.Value
StartingShurikinAmmo.Parent = game.Workspace
Debris:AddItem(StartingShurikinAmmo, 5)
wait(script.Parent.CoolDown.Value)
debounce = true
end
end)
Qin2007
(Qin2007)
September 19, 2021, 4:59pm
#2
unAnchor all your tool parts
i hope this works
1 Like
crazyEjai
(Giyu)
September 19, 2021, 5:03pm
#3
@Qin2007 this didn’t work please help me.
Cbrrah
(Cbrah)
September 19, 2021, 5:58pm
#4
Can you provide screen shots of what happens when you get teleported?
Maybe…
A. Make Sure There is a Part called “Handle”
B. Make Sure There are no welds to the other objects other than the tool itself!
C.Try welding every part of your tool to parts inside the tool or 1 part!
D. Make Sure its unanchored
E. Maybe try CanCollide off
I had this problem before, I got it fixed, I just forgot how ;-; Sorry, Hope this helps!
1 Like
crazyEjai
(Giyu)
September 19, 2021, 7:01pm
#6
This happens when I fire the tool.
Cbrrah
(Cbrah)
September 19, 2021, 7:04pm
#7
Did you name the tool Handle?
Also, make sure all the parts in the weapon are un-anchored.
crazyEjai
(Giyu)
September 19, 2021, 7:08pm
#8
It was cancollide I needed to turn that off.
1 Like