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

attempt to call method 'Clone' (a nil value) ?

Asked by 4 years ago

The error is in line 19

Here is the script. Its a script in ServerScriptService


local Ss = game:GetService("ServerStorage") local Rs = game:GetService("ReplicatedStorage") local event = Rs.QuirkX event.OnServerEvent:Connect(function(player) local data = Ss.RemoteData[player.Name] local quirk = data.Quirk local char = player.Character local mName = quirk.Value .. "MoveX" print(mName) local Model = Rs.Name if char.Humanoid.BodyHeightScale.Value > 1 then else local Atk = Model:Clone() Atk.Parent = workspace Atk.Position = char.HumanoidRootPart.Postion end end)
0
Modelis defined as the name of game:GetService("ReplicatedStorage") THEROBLOXAIN2 15 — 4y
0
OOF, i realized it should be Rs.mName. Thank You! Real_BoomyBoomYT 10 — 4y

Answer this question