Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
vhelypogi -19
4 years ago
Edited 4 years ago

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)

0
Please make it a code block, mark everything and press the blue ball Spjureeedd 385 — 4y
0
lol yes please FlabbyBoiii 81 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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!

Ad

Answer this question