So, I've been trying to make a trail work when I hold down shift, but it keeps saying Trail isn't a valid child of Server Storage. Here's my script.
local Player = game.Players.LocalPlayer
local Character = Player.Character
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftShift then
game.ServerStorage.Trail.Enabled = true
else
game.ServerStorage.Trail.Enabled = true
end
end)
BTW I'm trying to connect it from the head to Humanoid Root Part, but didn't know how to do that.

1 comment
Use a remote event, the client cant access anything inside the serverstorage