print("Sanji02 is a cool guy")
Player = game.Players.LocalPlayer
char = Player.Character
Mouse = Player:GetMouse()
function onKeyDown(key)
key = key:lower()
if key == "e" then
if game.Workspace:findFirstChild("Rashomon") then
return end
local Rashomon = game.ServerStorage.Rashomon:Clone()
Rashomon.Parent = game.Workspace
local Rashokids = Rashomon:GetChildren()
Rashokids.CanCollide = true
Rashokids.Anchored = true
local CoolLighting = Instance.new("Humanoid")
CoolLighting.Parent = Rashomon
Rashokids.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -5)
end
end
Mouse.KeyDown:connect(onKeyDown)
The script is supposed to spawn a wall that is a model from ServerStorage infront of the player. The script only spawns the wall. But the wall won't spawn infront of the player? Any help?
