Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to make the other see my knife? this is localscript is there anyway to?

local plr = game.Players.LocalPlayer

local char = plr.Character

local rarm = char:WaitForChild("Right Arm")

local tool = script.Parent

equipped = true

knife = game.ReplicatedStorage.KnifeModel:Clone()

knife.Parent = char

knife.Handle.Anchored = false

kweld = Instance.new("Weld", knife.Handle)

kweld.Part0 = rarm

kweld.Part1 = knife.Handle

kweld.C0 = CFrame.new(0, -1, -1.25) * CFrame.Angles(-math.pi / 100, -math.pi / 2, 0)

2 comments

0

Please make it a code block, mark everything and press the blue ball

0

lol yes please

1 answer

Your problem is that you're using a local script!

Local scripts are used for making something happen on player clients NOT the server!

To fix this I would create a Script in the StarterCharacter (However I would not recommend this if you want a certain player and not everyone)

local char = Script.Parent

local rarm = char:WaitForChild("Right Arm")

local tool = script.Parent

equipped = true

knife = game.ReplicatedStorage.KnifeModel:Clone()

knife.Parent = char

knife.Handle.Anchored = false

kweld = Instance.new("Weld", knife.Handle)

kweld.Part0 = rarm

kweld.Part1 = knife.Handle

kweld.C0 = CFrame.new(0, -1, -1.25) * CFrame.Angles(-math.pi / 100, -math.pi / 2, 0)

Also not a great scripter myself so this might not work!

This discussion is preserved as it was. New answers, comments, and votes are closed.