i have THIS simple script:

local Player = script.Parent.Parent
local Character = Player.Character or
Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HumaoidRP = Character:WaitForChild("HumanoidRootPart")
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.G then
print("bag droped")
game.Workspace.Baseplate:Destroy()
end
end)

and the baseplae disappears fro the client (person clicking G) but i click server mode and the baseplate is still there and player goes right through it, how can i make a key down detector that makes a server change?

7 comments

0

remoteevents

0

it makes sense becasue this is in local script, but key down detect doesnt work in normal script!

0

use remote events how!?

0

wiki tutorial

0

k

0

[Closed]

0

add [Solved] if self solved