#Weasel smells

1 messages · Page 1 of 1 (latest)

mint bay
#

If it is server script, you cant get LocalPlayer, or try move script to StarterCharacterScripts

sudden badge
#

@mint bay
i changed the script to this

-- Get a reference to the LocalPlayer
local player = game.Players.LocalPlayer

-- Wait for the player's character to load
local character = player.Character or player.CharacterAdded:Wait()


-- Create a new WedgePart and set its properties
local wedge = Instance.new("WedgePart")
wedge.Name = "Wedge"
wedge.Size = Vector3.new(4, 6, 3)
wedge.Color = Color3.new(1, 0, 0)
wedge.Material = Enum.Material.Neon
wedge.Anchored = true

-- Parent the wedge to the player's character and position it
wedge.Parent = character
wedge.CFrame = character.HumanoidRootPart.CFrame

-- Weld the wedge to the character
local weld = Instance.new("WeldConstraint")
weld.Parent = character.HumanoidRootPart
weld.Part0 = character.HumanoidRootPart
weld.Part1 = character.HumanoidRootPart.wedge

But i keep getting this error

HumanoidRootPart is not a valid member of Model "Workspace.spacerocket4812"

mint bay
lethal temple
#

@sudden badge I just want to warn you, this has been done a few times and all times have failed (ratings under 60%)

sudden badge
#

Weasel smells

#

X