#Ball converter not working
1 messages · Page 1 of 1 (latest)
So I wouldnt do this locally
Is script 1 a localscript?
Also event.Event is not a trigger
Its event.OnClientEvent
Or .OnServerEvent
I already said the first one is a normal script and the second is local
here ima type the first script
local Players = game:GetService("Players")
local part = script.Parent
local debounce = false
local event = game.ReplicatedStorage.MakePlayerBallSignal
part.Touched:Connect(function(otherpart)
local player = Players:GetPlayerFromCharacter(otherpart.Parent)
if player then
if debounce then return end
debounce = true
local Playermodel = otherpart.Parent
event:FireServer(Playermodel)
wait(1)
debounce = false
end
end)
and second
local players = game:GetService("Players")
local storage = game:GetService("ReplicatedStorage")
local event = game.ReplicatedStorage.MakePlayerBallSignal
local player = game.Players.LocalPlayer
local Playerball = game.ReplicatedStorage.Playerball:Clone()
event.OnClientEventEvent:Connect(function(PlayerModel)
local Char = player.Character or player.CharacterAdded:Wait()
local Playerball = game.ServerStorage.ball:Clone()
local Weld = Instance.new("WeldConstraint")
Weld.Parent = Playerball
Weld.Part0 = Playerball
Weld.Part1 = Char.HumanoidRootPart
Ball.Position = Char.PrimaryPart.Position + Vector3.new(0, 0, 0)
Ball.Parent = Char
end)
The do event.FireClient(player, Playermodel)
I mean there is no reason to pass Playermodel as the 2nd argument, beacuse you can just get the same thing by foing Player.Character
you mean the "event.OnClientEventEvent:Connect(function(PlayerModel)" ?
or "event:FireServer()"?
hello?
Alright it fixed
bro said yes to himself
fr bro who would do that???
idk man some people just trippin
** You are now Level 1! **